package com.rp.configure.swagger;

import com.rp.common.config.swagger.SwaggerConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * 类说明:
 *
 * @author ****
 * @date 2021-03-11 10:42  新建
 */
@Configuration
@EnableSwagger2
public class SwaggerConfigure {

    @Bean
    public Docket comrpsystemConfigure() {
        return SwaggerConfig.createDocket()
                .groupName("组态模块")
                .select().apis(RequestHandlerSelectors.basePackage("com.rp.configure"))
                .build();
    }

}
